{include file=header.html}
<script type="text/javascript">
//<!CDATA[
$(function(){
    $("#price_form").submit(function(){
       var price_amount_from =  $("input[name='price_amount_from']").val();
       var price_amount_to  =  $("input[name='price_amount_to']").val();
       if(price_amount_from == '' || price_amount_to == '')
       {
        alert('最小价格与最大价格不能为空');
        return false;
       }
       if(parseInt(price_amount_from) >= parseInt(price_amount_to))
       {
        alert('最大价格要大于最小价格');
        return false;
       }
    });
});
//]]>
</script>
<!--广告与导航-->
{include file=top.html}
<!--内容-->
<div id="content">
  <!--左边内容-->
  <div id="left"> {include file=left.html} </div>
  <!--右边内容-->
  <div id="right">
    <div class="module_special">
      <div class="wrap">
        <div class="wrap_child">
          <!--{if $searched_goods}-->
          <div class="f-wrap">
            <div class="f-cap">排序：</div>
            <ul id="f_list" class="f-list">
             <!--{if $search_conditions.order_by eq 'price-desc'}-->
             <li class="cur-f"><a title="{$orders.price-asc}" href="index.php?{$search_conditions.page_url_format}&order=price-asc"><span>价格</span><i class="down-red"></i></a></li>
             <!--{elseif $search_conditions.order_by eq 'price-asc'}-->
             <li class="cur-f"><a title="{$orders.price-desc}" href="index.php?{$search_conditions.page_url_format}&order=price-desc"><span>价格</span><i class="up-red"></i></a></li>
             <!--{else}-->
             <li><a title="{$orders.price-asc}" href="index.php?{$search_conditions.page_url_format}&order=price-asc"><span>价格</span><i class="up-gray"></i></a></li>
             <!--{/if}--> 
             
             <!--{if $search_conditions.order_by eq 'add_time-desc'}-->
             <li class="cur-f"><a title="{$orders.add_time-asc}" href="index.php?{$search_conditions.page_url_format}&order=add_time-asc"><span>上架</span><i class="down-red"></i></a></li>
             <!--{elseif $search_conditions.order_by eq 'add_time-asc'}-->
             <li class="cur-f"><a title="{$orders.add_time-desc}" href="index.php?{$search_conditions.page_url_format}&order=add_time-desc"><span>上架</span><i class="up-red"></i></a></li>
             <!--{else}-->
             <li><a title="{$orders.add_time-desc}" href="index.php?{$search_conditions.page_url_format}&order=add_time-desc"><span>上架</span><i class="down-gray"></i></a></li>
             <!--{/if}--> 
             
             <!--{if $search_conditions.order_by eq 'sales-desc'}-->
             <li class="cur-f"><a title="{$orders.sales-asc}" href="index.php?{$search_conditions.page_url_format}&order=sales-asc"><span>销量</span><i class="down-red"></i></a></li>
             <!--{elseif $search_conditions.order_by eq 'sales-asc'}-->
             <li class="cur-f"><a title="{$orders.sales-desc}" href="index.php?{$search_conditions.page_url_format}&order=sales-desc"><span>销量</span><i class="up-red"></i></a></li>
             <!--{else}-->
             <li><a title="{$orders.sales-desc}" href="index.php?{$search_conditions.page_url_format}&order=sales-desc"><span>销量</span><i class="down-gray"></i></a></li>
             <!--{/if}-->
            </ul>
            <div class="f-pirce"><form action="index.php"  method="get" id="price_form">&yen; <input type="hidden" name="app" value="store"><input type="hidden" name="id" value="{$store.store_id}"><input type="hidden" name="act" value="search"><input type="hidden" name="keyword" value="{$keyword}"><input class="f-pirce-input" onkeyup="this.value=this.value.replace(/\D/g,'')" name="price_amount_from" value="{$search_conditions.price_amount_from}" /> - <input class="f-pirce-input" onkeyup="this.value=this.value.replace(/\D/g,'')" name="price_amount_to" value="{$search_conditions.price_amount_to}" /> <input type="submit" class="btn b-radius" value="确定" /></form></div>
            <div class="p-wrap"><span class="fontColor2">共 {$page_info.item_count}件 商品</span></div>
          </div>
          <div class="major">
            <ul class="list f-cb">
              <!--{foreach from=$searched_goods item=sgoods}-->
              <li> <a href="{url app=goods&id=$sgoods.goods_id}" target="_blank" title="{$sgoods.goods_name|escape}"><img alt="{$sgoods.goods_name|escape}" src="{$sgoods.default_image}" width="220" height="220" />
                <p class="pirce">{$sgoods.price|price}</p>
                <h3>{$sgoods.goods_name|escape}</h3>
                <!--<p>已售{$sgoods.sales}件</p>-->
                </a> </li>
              <!-- {/foreach} -->
            </ul>
          </div>
         {include file=page.bottom.html}
        <!--{else}-->
        <div class="no-result">
            <table>
              <tr>
                <td>
                    <p><img src="{res file=images/no_result.png}" /></p>
                    <p><strong>抱歉，没有找到相关产品。</strong><br/>
                    您可以联系万菱导购团队，我们将免费帮你找货。<br/>
                    在线QQ：972646420<br/>
                    电话：4008-333-685<br/>
                    </p>
                    <p><a  href="{url app=store&id=$store.store_id&act=search}" class="linkbtn" >查看全部商品>></a></p>
                  </td>
              </tr>
            </table>
        </div>
        <!--{/if}-->
        </div>
      </div>
    </div>
  </div>
  <div class="clear"></div>
</div>
<!--登录弹窗-->
<script type="text/javascript" src="{lib file=jquery.plugins/jquery.validate.1_31_1.js}"></script>
<script type="text/javascript" src="{lib file=jquery.plugins/additional-methods.js}"></script>
{include file=login.popup.html}
<!--底部-->
{include file=footer.html} 